# 面向对象

# class Student:
#     school = "新启典学苑"
#     classname = 1
#     def a(self):
#         print("学习")
#     def b(self):
#         print("锻炼")
# zhou = Student()
# print(zhou.school)
# zhou.a()
# zhou.b()

# 实例化属性

class Student:
    school = "新起典学苑"
    def __init__(self,name,class_id):
        self.name = name
        self.id=class_id
    def a(self):
        if self == "周勇强":
            print("傻逼")
    def b(self):
        print("锻炼")
yong=Student
yong.name="周勇强"
print(yong.school)
print(yong.name)
yong.b("tomplus")
print(yong.school)
print(yong.name)

# 方法
